<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'add.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
       <form action="BooksServlet?opr=add" method="POST">
          <table>
              <tr>
                 <td colspan="3"><h1>新增图书信息</h1></td>
              </tr>
                <tr>
                  <td>图书名称：</td>
                  <td><input type="text" name="b_name" id="b_name"></td>
                </tr>
                <tr>
                  <td>图书作者：</td>
                  <td><input type="text" name="b_author" id="b_author"></td>
                </tr>
                 <tr>
                  <td>购买日期：</td>
                  <td><input type="text" name="b_time" id="b_time"></td>
                  <td>yyyy-MM-dd格式</td>
                </tr>
                 <tr>
                  <td>图书类别：</td>
                  <td>
                     <select name="b_type">
                        <option>添加所属的分类</option>
                        <option value="1">计算机、软件</option>
                        <option value="2">小说</option>
                        <option value="3">杂项</option>
                     </select>
                  </td>
                </tr>
                 <tr>
                   <td colspan="3"><input type="submit" value="添加图书"></td>
                 </tr>
          </table>
       
       </form>
  </body>
</html>
